package com.hui10.mediaplayer.ui.fragment

import com.hui10.mediaplayer.adapter.HomeAdapter
import com.hui10.mediaplayer.base.BaseListAdapter
import com.hui10.mediaplayer.base.BaseListFragment
import com.hui10.mediaplayer.base.BasePresenter
import com.hui10.mediaplayer.base.BaseView
import com.hui10.mediaplayer.model.HomeItemBean
import com.hui10.mediaplayer.presenter.HomePresenter
import com.hui10.mediaplayer.widget.HomeItemView

/**
 * Author: Created by lucus on 2019/5/24.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 */
class HomeFragment : BaseListFragment<List<HomeItemBean>, HomeItemBean, HomeItemView>() {
    override fun getSpecialAdapter(): BaseListAdapter<HomeItemBean, HomeItemView> {
        return HomeAdapter()
    }

    override fun getSpecialPresenter(baseView: BaseView<List<HomeItemBean>>): BasePresenter<List<HomeItemBean>> {
        return HomePresenter(this)
    }

    override fun getList(response: List<HomeItemBean>?): List<HomeItemBean>? {
        return response
    }

}